
#include "scim.h"

#include "scim_special_table.h"
#include "scim_phrase.h"
#include "scim_pinyin.h"
#include "scim_pinyin_phrase.h"
#include "scim_pinyin_global.h"
#include "scim_pinyin_instance.h"



PinyinInstance::PinyinInstance (const String& encoding) :
      m_iconv (encoding)
{

    if (encoding == "GBK" || encoding == "GB2312") {
        m_chinese_iconv.set_encoding ("GB2312");
    } else if (encoding == "BIG5" || encoding == "BIG5-HKSCS") {
        m_chinese_iconv.set_encoding ("BIG5");
    } else {
        m_chinese_iconv.set_encoding ("");
    }


}

PinyinInstance::~PinyinInstance ()
{

}


/*
vi:ts=4:nowrap:ai:expandtab
*/
